<template>
	<view>
		<view class="title-frame">
			<template v-for="(item, index) in title.length">
				<view class="title-item" :key="index">
					{{ title[index] }}
				</view>
				<view class="title-gap" v-if="index < title.length - 1">/</view>
			</template>
		</view>
		<view class="title-en-frame">
			{{ enTitle }}
		</view>
	</view>
</template>

<script>
	export default {
		name:"title",
		data() {
			return {
			};
		},
		props: {
			title: {
				default: '',
				type: String
			},
			enTitle: {
				default: '',
				type: String
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title-frame {
		display: flex;
		justify-content: center;
		font-size: 20px;
		font-weight: bold;
		.title-gap {
			padding: 0 10rpx;
			font-size: 12px;
			transform: translateY(6px);
			color: #9a9a9acc;
		}
	}
	.title-en-frame {
		display: flex;
		justify-content: center;
		padding-top: 5rpx;
		font-size: 12px;
		color: #d8b67b;
	}
</style>